﻿using MessagePack;
using System;
using System.Collections.Generic;
using System.Text;

namespace Serializer.Implementation
{
    public class MyProtobufSerializer<T> : ISerializer<T>
    {
        public T Deserialize(byte[] instance)
        {
            return MessagePackSerializer.Deserialize<T>(instance);
        }

        public byte[] Serialize(T instance)
        {
            return MessagePackSerializer.Serialize(instance);
        }
    }
}
